﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="DocumentManagement.Views.YGD.EditYuGuDanView" %>

<%@ Import Namespace="DocumentManagement.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        修改预估单</h2>
    <div>

        <%using (this.Html.BeginForm("EditYuGuDan", "yugudan", FormMethod.Post))
          { %>
        <input type="hidden" value="<%=this.Model.YGD.id %>" name="id" />
        <table>
            <tr>
                <td>
                    <div>
                        <label for="">
                            预估编号</label><input type="text" name="ygbh" id="ygbh" value="<%=this.Model.YGD.ygbh %>"/>
                    </div>
                    <div>
                        <label for="">
                            委托来源</label><input type="text" name="wtly" id="wtly" value="<%=this.Model.YGD.wtly %>"/>
                    </div>
                    <div>
                        <label for="">
                            委托方</label><input type="text" name="wtf" id="wtf"  value="<%=this.Model.YGD.wtf %>"/>
                    </div>
                    <div>
                        <label for="">
                            经办人</label><input type="text" name="wtr" id="wtr"  value="<%=this.Model.YGD.wtr %>"/>
                    </div>
                    <div>
                        <label for="">
                            项目座落</label><input type="text" name="xmzl" id="xmzl"  value="<%=this.Model.YGD.xmzl %>"/>
                    </div>
                    <div>
                        <label for="">
                            建筑面积</label><input type="text" name="jzhmj"  value="<%=this.Model.YGD.jzhmj %>"/>
                    </div>
                    <div>
                        <label for="">
                            土地面积</label><input type="text" name="tdmj"  value="<%=this.Model.YGD.tdmj %>"/>
                    </div>
                    <div>
                        <label for="">
                            业态</label>
                        <%=this.Html.DropDownList("yt", new SelectListItem[] {
                      new SelectListItem() { Text = Utility.GetEnumText(YeTai.ZhuZhai), Value=((int)YeTai.ZhuZhai).ToString(), Selected= ((int)YeTai.ZhuZhai == this.Model.YGD.yt)},
                      new SelectListItem() { Text = Utility.GetEnumText(YeTai.GongYe), Value=((int)YeTai.GongYe).ToString(), Selected= ((int)YeTai.GongYe == this.Model.YGD.yt)},
                      new SelectListItem() { Text = Utility.GetEnumText(YeTai.ShangYe), Value=((int)YeTai.ShangYe).ToString(), Selected= ((int)YeTai.ShangYe == this.Model.YGD.yt)},
                      new SelectListItem() { Text = Utility.GetEnumText(YeTai.BanGong), Value=((int)YeTai.BanGong).ToString(), Selected= ((int)YeTai.BanGong == this.Model.YGD.yt)},
                      new SelectListItem() { Text = Utility.GetEnumText(YeTai.QiTa), Value=((int)YeTai.QiTa).ToString(), Selected= ((int)YeTai.QiTa == this.Model.YGD.yt)}
                  })
                        %>
                    </div>
                    <div>
                        <label for="">
                            竣工日期</label><input type="text" name="jgrq"  value="<%=this.Model.YGD.jgrq %>"/>
                    </div>
                </td>
                <td>
                    <div>
                        <label for="">
                            建筑层高</label><input type="text" name="jzhcg"   value="<%=this.Model.YGD.jzhcg %>"/>
                    </div>
                    <div>
                        <label for="">
                            预估总价</label><input type="text" name="ygzj"   value="<%=this.Model.YGD.ygzj %>"/>
                    </div>
                    <div>
                        <label for="">
                            预估单价</label><input type="text" name="ygdj"  value="<%=this.Model.YGD.ygdj %>"/>
                    </div>
                    <div>
                        <label for="">
                            预估净值</label><input type="text" name="ygjzh"  value="<%=this.Model.YGD.ygjzh %>"/>
                    </div>
                    <div>
                        <label for="">
                            项目区域</label><input type="text" name="xmqy"  value="<%=this.Model.YGD.xmqy %>"/>
                    </div>
                    <div>
                        <label for="">
                            估价时点</label><input type="text" name="gjshd" id="gjshd"  value="<%=this.Model.YGD.gjshd %>"/>
                    </div>
                    <div>
                        <label for="">
                            环线位置</label>
                        <%=this.Html.DropDownList("hxqy", new SelectListItem[] {
                      new SelectListItem() { Text = Utility.GetEnumText(HuanXianQuYu.NeiHuan), Value=((int)HuanXianQuYu.NeiHuan).ToString(), Selected = ((int)HuanXianQuYu.NeiHuan == this.Model.YGD.hxqy)},
                      new SelectListItem() { Text = Utility.GetEnumText(HuanXianQuYu.NeiZhong), Value=((int)HuanXianQuYu.NeiZhong).ToString(), Selected = ((int)HuanXianQuYu.NeiZhong == this.Model.YGD.hxqy)},
                      new SelectListItem() { Text = Utility.GetEnumText(HuanXianQuYu.ZhongWai), Value=((int)HuanXianQuYu.ZhongWai).ToString(), Selected = ((int)HuanXianQuYu.ZhongWai == this.Model.YGD.hxqy)},
                      new SelectListItem() { Text = Utility.GetEnumText(HuanXianQuYu.Wai), Value=((int)HuanXianQuYu.Wai).ToString(), Selected = ((int)HuanXianQuYu.Wai == this.Model.YGD.hxqy)}
                  })
                        %>
                    </div>
                    <div>
                        <label for="">
                            开票金额：</label><input type="text" name="kpje" id="kpje" value="<%=this.Model.YGD.kpje %>" />
                    </div>
                    <div>
                        <label for="">
                            实收金额：</label><input type="text" name="shshje" id="shshje" value="<%=this.Model.YGD.shshje %>" />
                    </div>
                    <div>
                        <label for="">
                            发票编号：</label><input type="text" name="fpbh" id="fpbh" value="<%=this.Model.YGD.fpbh %>" />
                    </div>
                    <div>
                        <label for="">
                            收费日期：</label><input type="text" name="shfrq" id="shfrq" value="<%=this.Model.YGD.shfrq %>" />
                    </div>
                    <div>
                        <label for="">
                            备注：</label><textarea name="bzh" id="bzh" ><%=this.Model.YGD.bzh %></textarea>
                    </div>                
                    </td>
            </tr>
        </table>
        <div>
            <input type="submit" value="修改" />
        </div>
        <%} %>
    </div>
</asp:Content>
